﻿using System.Windows;
using FireUI.Themes.WPF.Helper;

namespace FireUI.Themes.WPF.Assists;

public class ButtonAssist
{
    #region DependencyProperty:Kind

    public static readonly DependencyProperty KindProperty =
    DependencyProperty.RegisterAttached(
        "Kind",
        typeof(FireButtonKind),
        typeof(ButtonAssist),
        new FrameworkPropertyMetadata(
            default(FireButtonKind),
            FrameworkPropertyMetadataOptions.Inherits
        )
    );

    public static FireButtonKind GetKind(DependencyObject element) =>
        (FireButtonKind)element.GetValue(KindProperty);

    public static void SetKind(DependencyObject element, FireButtonKind value) =>
        element.SetValue(KindProperty, value);


    #endregion DependencyProperty:Kind

    #region DependencyProperty:IconKind

    public static readonly DependencyProperty IconKindProperty =
    DependencyProperty.RegisterAttached(
        "IconKind",
        typeof(FireIconKind),
        typeof(ButtonAssist),
        new FrameworkPropertyMetadata(
            default(FireIconKind),
            FrameworkPropertyMetadataOptions.Inherits
        )
    );

    public static FireIconKind GetIconKind(DependencyObject element) =>
        (FireIconKind)element.GetValue(KindProperty);

    public static void SetIconKind(DependencyObject element, FireIconKind value) =>
        element.SetValue(KindProperty, value);


    #endregion DependencyProperty:Kind
}
